// 坐标轴
let axes
let scene, camera, renderer
let mesh
init = () => {
    axes = new THREE.AxisHelper(400);
    scene = new THREE.Scene();
    camera = new THREE.PerspectiveCamera(90, 1280 / 720, 0.1, 1000);
    camera.position.set(40, 40, 40)
    camera.lookAt(0, 0, 0)
    mesh = new THREE.Mesh(
        new THREE.BoxGeometry(10, 10, 10),
        new THREE.MeshBasicMaterial({ wireframe: true })
    )
    mesh.position.set(10, 10, 10)
    scene.add(axes);
    scene.add(mesh)
    renderer = new THREE.WebGLRenderer()
    renderer.setSize(1920,1080)
    document.body.appendChild(renderer.domElement)

    render()
 
}
render = () => {
    // mesh.rotation.y +=0.1
    requestAnimationFrame(render)
    renderer.render(scene, camera)
}
init()
